package com.assignwork.entity.pc;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.io.Serializable;

/**
 * @ClassName PcShipRealWriting
 * @Description
 * @Author sl
 * @Date 2023/12/27 9:53
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "作业写实", description = "")
@TableName("pc_ship_real_writing")
public class PcShipRealWriting extends TenantEntity implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "船舶ID",notes = "船舶ID")
    private Long shipId ;

    @ApiModelProperty(name = "舱号",notes = "舱号")
    private Integer cabin ;

    @ApiModelProperty(name = "日志",notes = "日志")
    private String log ;
    @ApiModelProperty(name = "船名",notes = "船名")
    private String shipNameZh ;
    @ApiModelProperty(name = "航次",notes = "航次")
    private String voyageNo ;
    @ApiModelProperty(name = "进出口",notes = "进出口")
    private String impExp ;

    @ApiModelProperty(name = "附件详情",notes = "附件详情")
    @TableField(value = "attachment_details",typeHandler = JacksonTypeHandler.class)
    private JSONArray attachmentDetails;

//    private json

}
